<?php

use yii\helpers\Html;
use yii\web\View;
use yii\widgets\ActiveForm;
use common\models\User;

/* @var $this View */
/* @var $model User */
/* @var $form ActiveForm */
?>

<div class="user-form col-xs-2">
    <?php $form = ActiveForm::begin(); ?>
        <?= $form->field($model, 'username')->textInput(['maxlength' => 255])->label('用户名：') ?>
        <?= $form->field($model, 'password')->textInput(['maxlength' => 255])->label('密码：') ?>
        <?= $form->field($model, 'position')->textInput(['maxlength' => 255])->label('推广标识：') ?>
        <?= $form->field($model, 'phone')->textInput(['maxlength' => 11])->label('手机号：') ?>
        <?= $form->field($model, 'real_name')->textInput(['maxlength' => 255])->label('真实姓名：') ?>

        <div class="form-group">
            <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
        </div>
    <?php ActiveForm::end(); ?>
</div>
